package com.lesson10.composite;

/**
 * @author 朝花不迟暮
 * @version 1.0
 * @date 2020/8/31 16:48
 */
public class Department extends OragizationComposite
{
    public Department(String name, String desc)
    {
        super(name, desc);
    }

    //add，remove 就不用写了，因为他是叶子节点
    @Override
    public void print()
    {
        System.out.println(getName());
    }

    @Override
    public String getName()
    {
        return super.getName();
    }

    @Override
    public String getDesc()
    {
        return super.getDesc();
    }
}
